ad_obj = {
	banner_mod_init: function() {
		tools.validate($('#sign_in_form'), function(data) {
			if(data.msg.result==1){
				window.location.href = '/' + tools.webmaster_path + '/ad/banner_mod/?aid='+data.msg.aid;
			}
            if(data.msg.result==2){
                window.location.href = '/' + tools.webmaster_path + '/ad/banner_list/';
            }
		}, function(data) {
			tools.alert(data.msg);
		});
		if($('input[name="upload_num"]').val()){
			tools.mulupload();
		}
		tools.img_del('aid=');
	},

	banner_list_init: function() {
		tools.list_del('aid='); //列表删除
	}
}